package com.example.warehousems.event.event;

import com.example.warehousems.dao.model.Cargo;
import org.springframework.context.ApplicationEvent;

public class CargoInEvent extends ApplicationEvent {
    Cargo cargo;

    public CargoInEvent(Cargo cargo) {
        super(cargo);
        this.cargo = cargo;
    }

    public Cargo getCargo() {
        return cargo;
    }

    public void setCargo(Cargo cargo) {
        this.cargo = cargo;
    }
}
